package org.PropertyManageMentSystem.Data;

import java.sql.Time;
import java.sql.Timestamp;

public class Task {
    public enum TaskStates{
        unscheduled,
        processing,
        accomplished
        }
    private Long taskId;
    private Long ownerId;

    private Long emergencyTypeId;
    private Timestamp createTime;
    private String source;
    private String info;
    private TaskStates state;

    public Long getTaskId() {
        return taskId;
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public Long getEmergencyTypeId() {
        return emergencyTypeId;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public String getSource() {
        return source;
    }

    public String getInfo() {
        return info;
    }

    public TaskStates getState() {
        return state;
    }

    public void setState(TaskStates state) {
        this.state = state;
    }

    public Task(Long taskId, Long ownerId, Long emergencyTypeId, Timestamp createTime, String source, String info, TaskStates state) {
        this.taskId = taskId;
        this.ownerId = ownerId;
        this.emergencyTypeId = emergencyTypeId;
        this.createTime = createTime;
        this.source = source;
        this.info = info;
        this.state = state;
    }
}
